import Mock from 'mockjs'
//import decision from './decision/access.js'
import course from './decision/course.js'
import user from './decision/user'
import notice  from './decision/notice'
//import auditRegister from "./decision/auditRegister";
//import courseGroup from "./decision/courseGroup";
//import auditJoin from "./decision/auditJoin";
// import major from "./decision/major";//专业管理
//import collegeAdmin from  "./decision/collegeAdmin"
//import college from './decision/college.js'; // 校管理员 学院管理
// import collegeAdmin from  "./decision/collegeAdmin"
//import college from './decision/college.js'; // 校管理员 学院管理
//import teacherList from "./decision/teacherList";
// import classes from "./decision/classes"; // 班级管理

// 登录注册相关
// Mock.mock('/api/login/collegeAdmin', 'post', decision.loginData) //登陆
// Mock.mock('/api/account/password/change', 'post', decision.changePassword())  // 管理员修改密码
// // Mock.mock('/api/student/login/register', 'post', decision.registerData) //注册
// // Mock.mock('/api/student/login/changePassword', 'post', decision.changePasswdData) //修改学生密码
//
// // 获取管理员信息
// Mock.mock('/api/account/msg', 'get', decision.systemMessage)

// 批量导入课程
Mock.mock('/api/import/course/download', 'get', course.courseDownload()) //批量导入课程下载Excel模板
Mock.mock('/api/import/course/upload', 'post', course.courseUpload()) // 批量导入上传Excel文件
Mock.mock('/api/import/course', 'post', course.courseImport()) // 课程引入

// 批量导入用户
Mock.mock('/api/import/student/download', 'get', user.studentDownload()) //下载学生模板
Mock.mock('/api/import/teacher/download', 'get', user.teacherDownload()) //下载老师模板
Mock.mock('/api/import/student/upload', 'post', user.studentUpload()) //上传学生文件
Mock.mock('/api/import/teacher/upload', 'post', user.teacherUpload()) //上传老师文件
Mock.mock('/api/import/student/preview', 'get', user.studentPreview()) //预览学生模板
Mock.mock('/api/import/teacher/preview', 'get', user.teacherPreview()) //预览老师模板
Mock.mock('/api/import/student/import', 'post', user.teacherPreview()) //预览老师模板

// // 批量导入课程组
// Mock.mock('/api/import/courseGroup/download', 'get', courseGroup.courseGroupUpload()) //下载课程组模板
// Mock.mock('/api/import/courseGroup/upload', 'post', courseGroup.courseGroupUpload()) //上传课程组模板
// Mock.mock('/api/import/courseGroup', 'post',courseGroup.courseGroupImport()) //批量导入课程组
// Mock.mock('/api/import/courseGroupInfo', 'get',courseGroup.editCourseGroupInfo()) //获取编辑的课程组信息

// //学生列表相关
// Mock.mock(RegExp('/api/student/msg'+'.*'), 'get', user.studentInfo)// 获取学生列表信息
// Mock.mock(RegExp('/api/student/searchStu'+'.*'), 'get', user.searchStu)//查询学生信息
// Mock.mock(RegExp('/api/student/resetStuPwd'+'.*'),'get',user.resetPassword)//重置学生密码为账号
// Mock.mock(RegExp('/api/student/deleteStuRecord'+".*"),'get',user.deleteStuRecord)//获取单个删除学生的删除对象信息
// Mock.mock(RegExp('/api/student/massDeleteStuRecord'+".*"),'get',user.massDeleteStuRecord)//获取批量删除学生的删除对象信息
// Mock.mock('/api/student/getGrade','get',user.getGrade())//获取年级
// Mock.mock(RegExp('/api/student/getMajor'+".*"),'get',user.getMajor)//获取专业
// Mock.mock(RegExp('/api/student/getClass'+".*"),'get',user.getClass)//获取班级
// Mock.mock(RegExp('/api/student/selectClass'+".*"),'get',user.selectClass)//班级查询

//course 课程管理相关的api
// Mock.mock(RegExp('/api/course/get'+".*"), 'get', course.getCourseList)//获取课程列表
// Mock.mock(RegExp('/api/course/delete'+".*"), 'get', course.deleteCourse)//课程删除
// Mock.mock('/api/course/delete', 'post', course.batchDeleteCourse)//批量删除
// Mock.mock('/api/course/query', 'post', course.queryCourse)//课程查询
// Mock.mock('/api/course/add', 'post', course.addCourse)//课程添加
// Mock.mock('/api/course/modify', 'post', course.modifyCourse)//课程修改


//notice 发布通知相关的api
Mock.mock(RegExp('/api/notice/get'+".*"), 'get', notice.getNotice)//获取通知列表
Mock.mock(RegExp('/api/notice/delete'+".*"), 'get', notice.deleteNotice)//删除通知
Mock.mock(RegExp('/api/notice/noticeInfo'+".*"), 'get', notice.noticeInfo)//查看通知详情
Mock.mock('/api/notice/add', 'post', notice.addNotice)//添加通知

//审核注册相关的 api
// Mock.mock(RegExp('/api/audit/register/get'+".*"),'get',auditRegister.auditRegisterGet)
// Mock.mock(RegExp('/api/audit/register/operate'+".*"),'get',auditRegister.auditRegisterOperate)
// Mock.mock('/api/audit/register/operate','post',auditRegister.auditRegisterBatchOperate)
// Mock.mock(RegExp('/api/teacher/get/teacherInfo'+'.*'),'get',auditRegister.getTeacherInfo)

//审核加入相关 api
// Mock.mock(RegExp('/api/audit/join/get'+".*"),'get',auditJoin.auditJoinGet)
// Mock.mock(RegExp('/api/audit/join/operate'+".*"),'get',auditJoin.auditJoinOperate)
// Mock.mock('/api/audit/join/operate','post',auditJoin.auditJoinBatchOperate)
//Mock.mock(RegExp('/api/courseGroup/get/courseGroupInfo'+'.*'),'get',auditJoin.getCourseGroupInfo)

//major 专业管理相关的api
// Mock.mock(RegExp('/api/major/get'+".*"), 'get', major.getMajorList)  //获取专业信息列表
// Mock.mock(RegExp('/api/major/delete'+".*"), 'get', major.deleteMajor)//删除特定专业
// Mock.mock('/api/major/delete', 'post', major.batchDeleteMajor)          //批量删除专业
// Mock.mock('/api/major/query', 'post', major.queryMajor)                 //查询到的专业信息
// Mock.mock('/api/major/add', 'post', major.addMajor)                     //新建专业信息
// Mock.mock('/api/major/modify', 'post', major.modifyMajor)               //编辑专业信息

// 院管理员设置界面api
// 获取管理员信息
// Mock.mock('/api/collegeAdmin/get', 'get', collegeAdmin.CollegeAdminRecord)
// Mock.mock('/api/collegeAdmin/add','post',collegeAdmin.optionOk) // 添加管理员
// Mock.mock('/api/collegeAdmin/delete','post',collegeAdmin.optionOk) // 删除管理员
// Mock.mock('/api/collegeAdmin/deletes','post',collegeAdmin.optionOk) // 批量删除管理员
// Mock.mock('/api/collegeAdmin/modify','post',collegeAdmin.optionOk) // 修改管理员信息

//classes 班级管理相关的api
// Mock.mock('/api/classes/get/grades', 'get', classes.getGrades())               //获取年级
// Mock.mock('/api/classes/get/majors', 'get', classes.getMajors)               //获取专业
// Mock.mock('/api/classes/get/numbers', 'get', classes.getNumbers)
// Mock.mock(RegExp('/api/classes/get'+".*"), 'get', classes.getClasses)       //获取班级信息列表
// Mock.mock(RegExp('/api/classes/delete'+".*"), 'get', classes.deleteClasses) //删除特定班级
// Mock.mock('/api/classes/get', 'post', classes.getClasses)//get
// Mock.mock('/api/classes/delete', 'post', classes.deleteClasses)//get
// Mock.mock('/api/classes/delete', 'post', classes.batchDeleteClasses)           //批量删除班级
// Mock.mock('/api/classes/query', 'post', classes.queryClasses)                  //查询到的班级信息
// Mock.mock('/api/classes/add', 'post', classes.addClasses)                      //添加班级

// 校管理员 学院管理
// Mock.mock('/api/college/get', 'get', college.collegeGet()) // 学院管理，获取学院信息
//Mock.mock('/api/college/add', 'post', college.collegeAdd()) // 学院管理，添加学院
//Mock.mock('/api/college/delete', 'post', college.collegeDelete()) // 学院管理，删除学院
//Mock.mock('/api/college/batchDel', 'post', college.collegeDelete()) // 学院管理，批量删除学院
//Mock.mock('/api/college/get', 'get', college.collegeGet()) // 学院管理，获取学院信息
//Mock.mock('/api/college/add', 'post', college.collegeAdd()) // 学院管理，添加学院
//Mock.mock('/api/college/delete', 'post', college.collegeDelete()) // 学院管理，删除学院
//Mock.mock('/api/college/batchDel', 'post', college.collegeDelete()) // 学院管理，批量删除学院
// Mock.mock('/api/import/get', 'get', courseGroup.get)
//courseGroup 课程组列表相关的api
// Mock.mock('/api/courseGroup/get/courses', 'get', courseGroup.courseGroupGetCourses()) // 获取学院内的所有课程
// Mock.mock('/api/courseGroup/get/classes', 'get', courseGroup.courseGroupGetClasses()) //获取学院内的所有班级
// Mock.mock('/api/courseGroup/get/teachers', 'get', courseGroup.courseGroupGetTeacher()) //获取学院内的所有老师
// Mock.mock('/api/courseGroup/get', 'get', courseGroup.courseGroupInfo())         //获取课程组信息
// Mock.mock('/api/courseGroup/query', 'post', courseGroup.courseGroupQuery()) //查询课程组
// //Mock.mock(RegExp('/api/courseGroup/get/courseGroupInfo'+'.*'), 'get', courseGroup.courseGroupInfo()) //查看课程组信息
// Mock.mock('/api/courseGroup/modify', 'post', courseGroup.courseGroupModify()) //编辑课程组信息
// Mock.mock(RegExp('/api/courseGroup/delete'+'.*'), 'get', courseGroup.courseGroupDelete()) //删除单行课程组
// Mock.mock('/api/courseGroup/add', 'post', courseGroup.courseGroupAdd())//新建课程组
// Mock.mock('/api/courseGroup/batchDel', 'post', courseGroup.BatchDelete) //批量删除课程组


//老师列表
// Mock.mock('/api/teacher/get', 'get', teacherList.teacherInfo) //获取老师列表信息
// Mock.mock('/api/teacher/modify', 'post', teacherList.teacherModify) //修改老师列表信息
// Mock.mock(RegExp('/api/teacher/delete'+".*"), 'get', teacherList.teacherDelete) //删除老师列表信息
// Mock.mock('/api/teacher/query', 'post', teacherList.teacherQuery)//查询指定老师信息
// Mock.mock(RegExp('/api/teacher/delete'+".*"), 'post', teacherList.deleteTeacher) //批量删除老师列表信息
// Mock.mock('/api/teacher/college', 'get', teacherList.teacherCollege) //获取学院信息


export default Mock;
